<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width" />
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=EDGE">
    <title>52315云防伪平台后台管理系统</title>

    
 
    <link rel="stylesheet" href="/public/static/Content/ThemesBusiness/Home.css">

   
    <link href="/public/static/Content/ThemesEasyui/gray/easyui.css" rel="stylesheet">

    <link href="/public/static/Content/ThemesEasyui/red/exEasyui.css" rel="stylesheet">

    <link href="/public/static/Content/ThemesEasyui/icon.css" rel="stylesheet">

    
   
    <script src="/public/static/Scripts/jquery-2-0-0-min.js"></script>
    <script src="/public/static/Scripts/jquery.easyui.min.js"></script>
    <script src="/public/static/Scripts/jquery-easyui-1-4-0-lang-zh_CN.js"></script>
    <script type="text/javascript">
        var keywords = "";
       
            $.ajax({
                url: "/keyword/keyword.xml",
                dataType: 'xml',
                type: 'GET',
                timeout: 2000,
                error: function (xml) {

                   // alert("加载XML 文件出错！");
                },
                success: function (xml) {

                    $(xml).find("MetaKeywords").each(function (i) {
                        keywords = $(this).text();
                    });
                }
            });

          
            function load() {
                var ts = $("#frameLoadTs", window.parent.document);
                ts.hide();
            }
    </script>
    <script src="/public/static/Scripts/common-helper.js"></script>  

     <script src="/public/static/Scripts/js/ckTanChuang.js"></script>

      <script type="text/javascript">
      
    function ReInfo() {
        var id="{$person.id}";
        console.log(id);

        if("true"=="true"){
            //MenuClickHrefEvent(', "编辑个人信息", 'tabsChildContent_1',true); 
            window.showBusinessForm("编辑个人信息",'/admin/user/add.html?id='+id+'&type=1');

        }

    }

</script>
  
    <script type="text/javascript">



      

    $(function() {
        var defaultModule = $('#moduleChildSystem_0');
        if (defaultModule.length > 0) {
            NavHighlightModule(defaultModule[0]);
        }
       
    });

    //单击顶部导航栏跳转页面
    function NavClickHrefEvent(container, titleShow) {
        var tabs = $("#tabsMainPage").tabs('tabs');
        if (!tabs || tabs.length <= 1)
        {
            window.location.href = "/";
        }
        else
        {
            $("#tabsMainPage").tabs('select', titleShow);
        }

        var elementList = container.getElementsByTagName('a');
        if (elementList && elementList.length > 0)
        {
            NavHighlightModule(elementList[0]);
        }
    }

    // 将当前模块切换为高亮图标
    var _NavCurrentModule;
    function NavHighlightModule(element) {
        if (_NavCurrentModule){
            var oldModule = $(_NavCurrentModule).children('img');
            var oldSrc = oldModule.attr('icon');
            oldModule.attr('src', oldSrc);
        }
        _NavCurrentModule = element;

        var currentModule = $(_NavCurrentModule).children('img');
        var currentSrc = currentModule.attr('iconHover');
        currentModule.attr('src', currentSrc);
    }

    //绑定左侧菜单栏
    function BindMenuData(data, menuPanel, contentPanel) {

        //实现在菜单拦中的显示,遍历节点集合
        for (var i = 0; i < data.length; i++) {
            var firstLayout = data[i];

            var strMenuItemHTMl = "";
            if (firstLayout.children){
                for (var j = 0; j < firstLayout.children.length; j++) {
                    var secondLayout = firstLayout.children[j];
                    strMenuItemHTMl += '<p style="padding-left:18px" class="ex-tree-node"><a href="javascript:void(0)" onclick="MenuClickHrefEvent(\'' + secondLayout.url + '\', $(this).text(), \'' + contentPanel + '\')" class="menuLink">' + secondLayout.text + '</a></p>';
                }
            }

            //EasyUI添加节点
            $('#' + menuPanel).accordion('add', {
                title: '&nbsp;&nbsp;' + firstLayout.text,
                iconCls:'ex-tree-folder',
                bodyCls:'ex-tree-folder-body',
                content: strMenuItemHTMl,
                selected: (firstLayout.isExpand == true),
                border: false
            });
        }
    }

    //单击左侧菜单栏跳转页面
    function MenuClickHrefEvent(src, titleShow, contentPanel, disClosable) {
        if (!amCommon.notEmpty(src) || !amCommon.notEmpty(titleShow)) {
            return;
        }
        //判断Tab标签中是否有相同的数据标签
        var contentTabs = $('#' + contentPanel);
        $("#frameLoadTs").show();
        var isExist = contentTabs.tabs('exists', titleShow);
        if (!isExist) {
            contentTabs.tabs('add', {
                title: titleShow,
                closable: (!disClosable) 
            });
           
            // 不是直接使用add方法，为了解决js解决访问的错误
            var newTab = contentTabs.tabs('getTab', titleShow);
            var strHtml = '<iframe name="frmChildContent" contentWindowTitle="'+titleShow+'" width="100%" height="99.4%" frameborder="0" scrolling="yes" src="' + src + '"></iframe>';
            contentTabs.tabs('update', {
                tab: newTab,
                options: {
                    content:strHtml
                }
            });
           
        }
        else {
            contentTabs.tabs('select', titleShow);
            var currTab=  contentTabs.tabs('getSelected');
            var strHtml = '<iframe name="frmChildContent" contentWindowTitle="'+titleShow+'" width="100%" height="99.4%" frameborder="0" scrolling="yes" src="' + src + '"></iframe>';
            contentTabs.tabs('update', {
                tab: currTab,
                options: {
                    content:strHtml
                }
            });
           
        }
    }
   
    function GetAccordionAndTab(count,currentTitle)
    {
        var childSystemPage=$('#tabsMainPage').tabs('getSelected');
        var childTabs = childSystemPage.find('.easyui-tabs');
        var selectedPage = childTabs.tabs('getSelected');
        var oldTitle = selectedPage.panel('options').title;
        if(currentTitle==oldTitle)
        {
            var titleIndex=oldTitle.lastIndexOf('(');
            var newTitle=oldTitle.substr(0,titleIndex);

            //修改左边标题
            childTabs.find('.tabs-selected>.tabs-inner>span.tabs-title').text(newTitle+'('+count+')');

            var childAccordions=childSystemPage.find('.easyui-accordion');
            var menuList = childAccordions.find('.ex-tree-node');
            for (var i=0;i<menuList.length;i++)
            {
                var menuLink = $(menuList[i]).find('a.menuLink');
                var title=menuLink.text();

                var tabTitleIndex=title.lastIndexOf('(');
                var tabTitle=title.substr(0,tabTitleIndex);

                if (tabTitle==newTitle)
                {
                    //修改选项卡的标题
                    menuLink.text(newTitle+'('+count+')');
                    break;
                }
            }
        }
    }

    function closetabs(name){
      
        $('#tabsChildContent_1').tabs('close',name);
        $("#frameLoadTs").hide();
    }
    $(function(){
        if("true" == "false"){
            MenuClickHrefEvent("/Home/DH" , "使用流程图", "tabsChildContent_1",true);
        }
    });
</script>

<style>
    .datagrid-body{
        overflow: hidden;
    }
    .datagrid-view1 .datagrid-body{
        overflow-y: auto;
    }
    
    
</style>
  
</head>

<body  onload="load()">
